<?php
/**
 *
 * Company Search Screen - Result Grid
 * 
 * @author Xavier VILAIN
 * @package Hive\Company
 *
 */
use Hive\Company;
use Fox\Grid\FieldCat\Field\Renderer\Anchor;
use Fox\Generator;

$grid = new Fox\Grid('gCompanies');
$grid->fieldcat(array(array('company','company_name'),'uname','udate'));
$grid->fieldcat()->field('udate')->displayTime();

$grid->fieldcat()->setFieldAttr('*', 'renderers',new Anchor(Generator::url(
	Company::BUNDLE,
	'main',
	null,
	array('cpid' => Generator::useElement('compid'))
)));
return $grid;